<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>SFML - Simple and Fast Multimedia Library</title>
        <meta http-equiv="Content-Type" content="text/html;"/>
        <meta charset="utf-8"/>
        <!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
        <link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="dynsections.js"></script>
        <link rel="stylesheet" type="text/css" href="search/search.css" />
        <link rel="stylesheet" type="text/css" href="searchOverrides.css" />
        <script type="text/javascript" src="search/searchdata.js"></script>
        <script type="text/javascript" src="search/search.js"></script>
        <script type="text/javascript">
        /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
          $(document).ready(function() { init_search(); });
        /* @license-end */
        </script>
    </head>
    <body>
        <div id="banner-container">
            <div id="banner">
                <span id="sfml">SFML 2.6.1</span>
            </div>
        </div>
        <div id="content">
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>sf</b></li><li class="navelem"><a class="el" href="classsf_1_1Transform.html">Transform</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#related">Related Symbols</a> &#124;
<a href="classsf_1_1Transform-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">sf::Transform Class Reference<div class="ingroups"><a class="el" href="group__graphics.html">Graphics module</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Define a 3x3 transform matrix.  
 <a href="classsf_1_1Transform.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Transform_8hpp_source.html">SFML/Graphics/Transform.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac32de51bd0b9f3d52fbe0838225ee83b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ac32de51bd0b9f3d52fbe0838225ee83b">Transform</a> ()</td></tr>
<tr class="memdesc:ac32de51bd0b9f3d52fbe0838225ee83b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <br /></td></tr>
<tr class="separator:ac32de51bd0b9f3d52fbe0838225ee83b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78c48677712fcf41122d02f1301d71a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a78c48677712fcf41122d02f1301d71a3">Transform</a> (float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22)</td></tr>
<tr class="memdesc:a78c48677712fcf41122d02f1301d71a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a transform from a 3x3 matrix.  <br /></td></tr>
<tr class="separator:a78c48677712fcf41122d02f1301d71a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85cb4194f42a965d337a8f02783c534"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ab85cb4194f42a965d337a8f02783c534">getMatrix</a> () const</td></tr>
<tr class="memdesc:ab85cb4194f42a965d337a8f02783c534"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the transform as a 4x4 matrix.  <br /></td></tr>
<tr class="separator:ab85cb4194f42a965d337a8f02783c534"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14f49e81af44aabcff7611f6703a1e4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a14f49e81af44aabcff7611f6703a1e4a">getInverse</a> () const</td></tr>
<tr class="memdesc:a14f49e81af44aabcff7611f6703a1e4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the inverse of the transform.  <br /></td></tr>
<tr class="separator:a14f49e81af44aabcff7611f6703a1e4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2e38c3c077d28898686662558b41135"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#af2e38c3c077d28898686662558b41135">transformPoint</a> (float x, float y) const</td></tr>
<tr class="memdesc:af2e38c3c077d28898686662558b41135"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a 2D point.  <br /></td></tr>
<tr class="separator:af2e38c3c077d28898686662558b41135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab42a0bb7a252c6d221004f6372ce5fdc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ab42a0bb7a252c6d221004f6372ce5fdc">transformPoint</a> (const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;point) const</td></tr>
<tr class="memdesc:ab42a0bb7a252c6d221004f6372ce5fdc"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a 2D point.  <br /></td></tr>
<tr class="separator:ab42a0bb7a252c6d221004f6372ce5fdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3824a20505d81a94bc22be1ffee57d3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Rect.html">FloatRect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a3824a20505d81a94bc22be1ffee57d3d">transformRect</a> (const <a class="el" href="classsf_1_1Rect.html">FloatRect</a> &amp;rectangle) const</td></tr>
<tr class="memdesc:a3824a20505d81a94bc22be1ffee57d3d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a rectangle.  <br /></td></tr>
<tr class="separator:a3824a20505d81a94bc22be1ffee57d3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8403f888799b5c9f781cb9f3757f2a4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ad8403f888799b5c9f781cb9f3757f2a4">combine</a> (const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;transform)</td></tr>
<tr class="memdesc:ad8403f888799b5c9f781cb9f3757f2a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with another one.  <br /></td></tr>
<tr class="separator:ad8403f888799b5c9f781cb9f3757f2a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a053cd024e320ae719837386d126d0f51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a> (float x, float y)</td></tr>
<tr class="memdesc:a053cd024e320ae719837386d126d0f51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a translation.  <br /></td></tr>
<tr class="separator:a053cd024e320ae719837386d126d0f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2426209f1fd3cc02129dec373a3c6f69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a2426209f1fd3cc02129dec373a3c6f69">translate</a> (const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;offset)</td></tr>
<tr class="memdesc:a2426209f1fd3cc02129dec373a3c6f69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a translation.  <br /></td></tr>
<tr class="separator:a2426209f1fd3cc02129dec373a3c6f69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad09ce22a1fb08709f66f30befc7b2e7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a> (float angle)</td></tr>
<tr class="memdesc:ad09ce22a1fb08709f66f30befc7b2e7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a rotation.  <br /></td></tr>
<tr class="separator:ad09ce22a1fb08709f66f30befc7b2e7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad78237e81d1de866d1b3c040ad003971"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#ad78237e81d1de866d1b3c040ad003971">rotate</a> (float angle, float centerX, float centerY)</td></tr>
<tr class="memdesc:ad78237e81d1de866d1b3c040ad003971"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a rotation.  <br /></td></tr>
<tr class="separator:ad78237e81d1de866d1b3c040ad003971"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11aa9a4fbd9254e7d22b96f92f018d09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a11aa9a4fbd9254e7d22b96f92f018d09">rotate</a> (float angle, const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;center)</td></tr>
<tr class="memdesc:a11aa9a4fbd9254e7d22b96f92f018d09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a rotation.  <br /></td></tr>
<tr class="separator:a11aa9a4fbd9254e7d22b96f92f018d09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a846e9ff8567f50adea9b3ce4c70c1554"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">scale</a> (float scaleX, float scaleY)</td></tr>
<tr class="memdesc:a846e9ff8567f50adea9b3ce4c70c1554"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a scaling.  <br /></td></tr>
<tr class="separator:a846e9ff8567f50adea9b3ce4c70c1554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1ad4ae13dacaf812b6411142243042b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#af1ad4ae13dacaf812b6411142243042b">scale</a> (float scaleX, float scaleY, float centerX, float centerY)</td></tr>
<tr class="memdesc:af1ad4ae13dacaf812b6411142243042b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a scaling.  <br /></td></tr>
<tr class="separator:af1ad4ae13dacaf812b6411142243042b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23fe4e63821354600b7592be90f2d65e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a23fe4e63821354600b7592be90f2d65e">scale</a> (const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;factors)</td></tr>
<tr class="memdesc:a23fe4e63821354600b7592be90f2d65e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a scaling.  <br /></td></tr>
<tr class="separator:a23fe4e63821354600b7592be90f2d65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a486a4a1946208a883c7f8ec1e9cf2e35"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a486a4a1946208a883c7f8ec1e9cf2e35">scale</a> (const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;factors, const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;center)</td></tr>
<tr class="memdesc:a486a4a1946208a883c7f8ec1e9cf2e35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Combine the current transform with a scaling.  <br /></td></tr>
<tr class="separator:a486a4a1946208a883c7f8ec1e9cf2e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aa4eb1eecbcb9979d76e2543b337fdb13"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classsf_1_1Transform.html">Transform</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#aa4eb1eecbcb9979d76e2543b337fdb13">Identity</a></td></tr>
<tr class="memdesc:aa4eb1eecbcb9979d76e2543b337fdb13"><td class="mdescLeft">&#160;</td><td class="mdescRight">The identity transform (does nothing)  <br /></td></tr>
<tr class="separator:aa4eb1eecbcb9979d76e2543b337fdb13"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="related" name="related"></a>
Related Symbols</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member symbols.) </p>
</td></tr>
<tr class="memitem:a85ea4e5539795f9b2ceb7d4b06736c8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a85ea4e5539795f9b2ceb7d4b06736c8f">operator*</a> (const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;left, const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;right)</td></tr>
<tr class="memdesc:a85ea4e5539795f9b2ceb7d4b06736c8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload of binary operator * to combine two transforms.  <br /></td></tr>
<tr class="separator:a85ea4e5539795f9b2ceb7d4b06736c8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a189899674616490f6250953ac581ac30"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a189899674616490f6250953ac581ac30">operator*=</a> (<a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;left, const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;right)</td></tr>
<tr class="memdesc:a189899674616490f6250953ac581ac30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload of binary operator *= to combine two transforms.  <br /></td></tr>
<tr class="separator:a189899674616490f6250953ac581ac30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eeee49125c3c72c250062eef35ceb75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a4eeee49125c3c72c250062eef35ceb75">operator*</a> (const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;left, const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;right)</td></tr>
<tr class="memdesc:a4eeee49125c3c72c250062eef35ceb75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload of binary operator * to transform a point.  <br /></td></tr>
<tr class="separator:a4eeee49125c3c72c250062eef35ceb75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2de0a3ee2f8af05dbc94bf3b4633b4a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#aa2de0a3ee2f8af05dbc94bf3b4633b4a">operator==</a> (const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;left, const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;right)</td></tr>
<tr class="memdesc:aa2de0a3ee2f8af05dbc94bf3b4633b4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload of binary operator == to compare two transforms.  <br /></td></tr>
<tr class="separator:aa2de0a3ee2f8af05dbc94bf3b4633b4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eee840ff0b2db9e5f57a87281cc2b01"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Transform.html#a5eee840ff0b2db9e5f57a87281cc2b01">operator!=</a> (const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;left, const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;right)</td></tr>
<tr class="memdesc:a5eee840ff0b2db9e5f57a87281cc2b01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload of binary operator != to compare two transforms.  <br /></td></tr>
<tr class="separator:a5eee840ff0b2db9e5f57a87281cc2b01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Define a 3x3 transform matrix. </p>
<p>A <a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">sf::Transform</a> specifies how to translate, rotate, scale, shear, project, whatever things.</p>
<p>In mathematical terms, it defines how to transform a coordinate system into another.</p>
<p>For example, if you apply a rotation transform to a sprite, the result will be a rotated sprite. And anything that is transformed by this rotation transform will be rotated the same way, according to its initial position.</p>
<p>Transforms are typically used for drawing. But they can also be used for any computation that requires to transform points between the local and global coordinate systems of an entity (like collision detection).</p>
<p>Example: </p><div class="fragment"><div class="line"><span class="comment">// define a translation transform</span></div>
<div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> translation;</div>
<div class="line">translation.<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(20, 50);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// define a rotation transform</span></div>
<div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> rotation;</div>
<div class="line">rotation.<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// combine them</span></div>
<div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform = translation * rotation;</div>
<div class="line"> </div>
<div class="line"><span class="comment">// use the result to transform stuff...</span></div>
<div class="line"><a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a> point = transform.<a class="code hl_function" href="classsf_1_1Transform.html#af2e38c3c077d28898686662558b41135">transformPoint</a>(10, 20);</div>
<div class="line"><a class="code hl_class" href="classsf_1_1Rect.html">sf::FloatRect</a> rect = transform.<a class="code hl_function" href="classsf_1_1Transform.html#a3824a20505d81a94bc22be1ffee57d3d">transformRect</a>(<a class="code hl_class" href="classsf_1_1Rect.html">sf::FloatRect</a>(0, 0, 10, 100));</div>
<div class="ttc" id="aclasssf_1_1Rect_html"><div class="ttname"><a href="classsf_1_1Rect.html">sf::Rect&lt; float &gt;</a></div></div>
<div class="ttc" id="aclasssf_1_1Transform_html"><div class="ttname"><a href="classsf_1_1Transform.html">sf::Transform</a></div><div class="ttdoc">Define a 3x3 transform matrix.</div><div class="ttdef"><b>Definition</b> <a href="Transform_8hpp_source.html#l00042">Transform.hpp:43</a></div></div>
<div class="ttc" id="aclasssf_1_1Transform_html_a053cd024e320ae719837386d126d0f51"><div class="ttname"><a href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">sf::Transform::translate</a></div><div class="ttdeci">Transform &amp; translate(float x, float y)</div><div class="ttdoc">Combine the current transform with a translation.</div></div>
<div class="ttc" id="aclasssf_1_1Transform_html_a3824a20505d81a94bc22be1ffee57d3d"><div class="ttname"><a href="classsf_1_1Transform.html#a3824a20505d81a94bc22be1ffee57d3d">sf::Transform::transformRect</a></div><div class="ttdeci">FloatRect transformRect(const FloatRect &amp;rectangle) const</div><div class="ttdoc">Transform a rectangle.</div></div>
<div class="ttc" id="aclasssf_1_1Transform_html_ad09ce22a1fb08709f66f30befc7b2e7b"><div class="ttname"><a href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">sf::Transform::rotate</a></div><div class="ttdeci">Transform &amp; rotate(float angle)</div><div class="ttdoc">Combine the current transform with a rotation.</div></div>
<div class="ttc" id="aclasssf_1_1Transform_html_af2e38c3c077d28898686662558b41135"><div class="ttname"><a href="classsf_1_1Transform.html#af2e38c3c077d28898686662558b41135">sf::Transform::transformPoint</a></div><div class="ttdeci">Vector2f transformPoint(float x, float y) const</div><div class="ttdoc">Transform a 2D point.</div></div>
<div class="ttc" id="aclasssf_1_1Vector2_html"><div class="ttname"><a href="classsf_1_1Vector2.html">sf::Vector2&lt; float &gt;</a></div></div>
</div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transformable.html" title="Decomposed transform defined by a position, a rotation and a scale.">sf::Transformable</a>, <a class="el" href="classsf_1_1RenderStates.html" title="Define the states used for drawing to a RenderTarget.">sf::RenderStates</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="Transform_8hpp_source.html#l00042">42</a> of file <a class="el" href="Transform_8hpp_source.html">Transform.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac32de51bd0b9f3d52fbe0838225ee83b" name="ac32de51bd0b9f3d52fbe0838225ee83b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac32de51bd0b9f3d52fbe0838225ee83b">&#9670;&#160;</a></span>Transform() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sf::Transform::Transform </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>
<p>Creates an identity transform (a transform that does nothing). </p>

</div>
</div>
<a id="a78c48677712fcf41122d02f1301d71a3" name="a78c48677712fcf41122d02f1301d71a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78c48677712fcf41122d02f1301d71a3">&#9670;&#160;</a></span>Transform() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sf::Transform::Transform </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a00</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a01</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a02</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a10</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a11</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a12</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a20</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a21</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a22</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a transform from a 3x3 matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a00</td><td>Element (0, 0) of the matrix </td></tr>
    <tr><td class="paramname">a01</td><td>Element (0, 1) of the matrix </td></tr>
    <tr><td class="paramname">a02</td><td>Element (0, 2) of the matrix </td></tr>
    <tr><td class="paramname">a10</td><td>Element (1, 0) of the matrix </td></tr>
    <tr><td class="paramname">a11</td><td>Element (1, 1) of the matrix </td></tr>
    <tr><td class="paramname">a12</td><td>Element (1, 2) of the matrix </td></tr>
    <tr><td class="paramname">a20</td><td>Element (2, 0) of the matrix </td></tr>
    <tr><td class="paramname">a21</td><td>Element (2, 1) of the matrix </td></tr>
    <tr><td class="paramname">a22</td><td>Element (2, 2) of the matrix </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad8403f888799b5c9f781cb9f3757f2a4" name="ad8403f888799b5c9f781cb9f3757f2a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8403f888799b5c9f781cb9f3757f2a4">&#9670;&#160;</a></span>combine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::combine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with another one. </p>
<p>The result is a transform that is equivalent to applying <em>transform</em> followed by *this. Mathematically, it is equivalent to a matrix multiplication (*this) * transform.</p>
<p>These two statements are equivalent: </p><div class="fragment"><div class="line">left.combine(right);</div>
<div class="line">left *= right;</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">transform</td><td><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> to combine with this transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this </dd></dl>

</div>
</div>
<a id="a14f49e81af44aabcff7611f6703a1e4a" name="a14f49e81af44aabcff7611f6703a1e4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14f49e81af44aabcff7611f6703a1e4a">&#9670;&#160;</a></span>getInverse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> sf::Transform::getInverse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the inverse of the transform. </p>
<p>If the inverse cannot be computed, an identity transform is returned.</p>
<dl class="section return"><dt>Returns</dt><dd>A new transform which is the inverse of self </dd></dl>

</div>
</div>
<a id="ab85cb4194f42a965d337a8f02783c534" name="ab85cb4194f42a965d337a8f02783c534"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab85cb4194f42a965d337a8f02783c534">&#9670;&#160;</a></span>getMatrix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const float * sf::Transform::getMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the transform as a 4x4 matrix. </p>
<p>This function returns a pointer to an array of 16 floats containing the transform elements as a 4x4 matrix, which is directly compatible with OpenGL functions.</p>
<div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform = ...;</div>
<div class="line">glLoadMatrixf(transform.<a class="code hl_function" href="classsf_1_1Transform.html#ab85cb4194f42a965d337a8f02783c534">getMatrix</a>());</div>
<div class="ttc" id="aclasssf_1_1Transform_html_ab85cb4194f42a965d337a8f02783c534"><div class="ttname"><a href="classsf_1_1Transform.html#ab85cb4194f42a965d337a8f02783c534">sf::Transform::getMatrix</a></div><div class="ttdeci">const float * getMatrix() const</div><div class="ttdoc">Return the transform as a 4x4 matrix.</div></div>
</div><!-- fragment --><dl class="section return"><dt>Returns</dt><dd>Pointer to a 4x4 matrix </dd></dl>

</div>
</div>
<a id="ad09ce22a1fb08709f66f30befc7b2e7b" name="ad09ce22a1fb08709f66f30befc7b2e7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad09ce22a1fb08709f66f30befc7b2e7b">&#9670;&#160;</a></span>rotate() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::rotate </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a rotation. </p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(90).<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(50, 20);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>Rotation angle, in degrees</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554" title="Combine the current transform with a scaling.">scale</a> </dd></dl>

</div>
</div>
<a id="a11aa9a4fbd9254e7d22b96f92f018d09" name="a11aa9a4fbd9254e7d22b96f92f018d09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11aa9a4fbd9254e7d22b96f92f018d09">&#9670;&#160;</a></span>rotate() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::rotate </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>center</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a rotation. </p>
<p>The center of rotation is provided for convenience as a second argument, so that you can build rotations around arbitrary points more easily (and efficiently) than the usual translate(-center).rotate(angle).translate(center).</p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(90, <a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(8, 3)).<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(<a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(50, 20));</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>Rotation angle, in degrees </td></tr>
    <tr><td class="paramname">center</td><td>Center of rotation</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554" title="Combine the current transform with a scaling.">scale</a> </dd></dl>

</div>
</div>
<a id="ad78237e81d1de866d1b3c040ad003971" name="ad78237e81d1de866d1b3c040ad003971"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad78237e81d1de866d1b3c040ad003971">&#9670;&#160;</a></span>rotate() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::rotate </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>centerX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>centerY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a rotation. </p>
<p>The center of rotation is provided for convenience as a second argument, so that you can build rotations around arbitrary points more easily (and efficiently) than the usual translate(-center).rotate(angle).translate(center).</p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(90, 8, 3).<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(50, 20);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>Rotation angle, in degrees </td></tr>
    <tr><td class="paramname">centerX</td><td>X coordinate of the center of rotation </td></tr>
    <tr><td class="paramname">centerY</td><td>Y coordinate of the center of rotation</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554" title="Combine the current transform with a scaling.">scale</a> </dd></dl>

</div>
</div>
<a id="a23fe4e63821354600b7592be90f2d65e" name="a23fe4e63821354600b7592be90f2d65e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23fe4e63821354600b7592be90f2d65e">&#9670;&#160;</a></span>scale() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::scale </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>factors</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a scaling. </p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">scale</a>(<a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(2, 1)).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
<div class="ttc" id="aclasssf_1_1Transform_html_a846e9ff8567f50adea9b3ce4c70c1554"><div class="ttname"><a href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">sf::Transform::scale</a></div><div class="ttdeci">Transform &amp; scale(float scaleX, float scaleY)</div><div class="ttdoc">Combine the current transform with a scaling.</div></div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factors</td><td>Scaling factors</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a> </dd></dl>

</div>
</div>
<a id="a486a4a1946208a883c7f8ec1e9cf2e35" name="a486a4a1946208a883c7f8ec1e9cf2e35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a486a4a1946208a883c7f8ec1e9cf2e35">&#9670;&#160;</a></span>scale() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::scale </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>factors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>center</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a scaling. </p>
<p>The center of scaling is provided for convenience as a second argument, so that you can build scaling around arbitrary points more easily (and efficiently) than the usual translate(-center).scale(factors).translate(center).</p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">scale</a>(<a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(2, 1), <a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(8, 3)).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factors</td><td>Scaling factors </td></tr>
    <tr><td class="paramname">center</td><td>Center of scaling</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a> </dd></dl>

</div>
</div>
<a id="a846e9ff8567f50adea9b3ce4c70c1554" name="a846e9ff8567f50adea9b3ce4c70c1554"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a846e9ff8567f50adea9b3ce4c70c1554">&#9670;&#160;</a></span>scale() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::scale </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scaleX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scaleY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a scaling. </p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">scale</a>(2, 1).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaleX</td><td>Scaling factor on the X axis </td></tr>
    <tr><td class="paramname">scaleY</td><td>Scaling factor on the Y axis</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a> </dd></dl>

</div>
</div>
<a id="af1ad4ae13dacaf812b6411142243042b" name="af1ad4ae13dacaf812b6411142243042b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1ad4ae13dacaf812b6411142243042b">&#9670;&#160;</a></span>scale() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::scale </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scaleX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scaleY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>centerX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>centerY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a scaling. </p>
<p>The center of scaling is provided for convenience as a second argument, so that you can build scaling around arbitrary points more easily (and efficiently) than the usual translate(-center).scale(factors).translate(center).</p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554">scale</a>(2, 1, 8, 3).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaleX</td><td>Scaling factor on X axis </td></tr>
    <tr><td class="paramname">scaleY</td><td>Scaling factor on Y axis </td></tr>
    <tr><td class="paramname">centerX</td><td>X coordinate of the center of scaling </td></tr>
    <tr><td class="paramname">centerY</td><td>Y coordinate of the center of scaling</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51" title="Combine the current transform with a translation.">translate</a>, <a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a> </dd></dl>

</div>
</div>
<a id="ab42a0bb7a252c6d221004f6372ce5fdc" name="ab42a0bb7a252c6d221004f6372ce5fdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab42a0bb7a252c6d221004f6372ce5fdc">&#9670;&#160;</a></span>transformPoint() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a> sf::Transform::transformPoint </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a 2D point. </p>
<p>These two statements are equivalent: </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a> transformedPoint = matrix.transformPoint(point);</div>
<div class="line"><a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a> transformedPoint = matrix * point;</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>Point to transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transformed point </dd></dl>

</div>
</div>
<a id="af2e38c3c077d28898686662558b41135" name="af2e38c3c077d28898686662558b41135"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2e38c3c077d28898686662558b41135">&#9670;&#160;</a></span>transformPoint() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a> sf::Transform::transformPoint </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a 2D point. </p>
<p>These two statements are equivalent: </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a> transformedPoint = matrix.transformPoint(x, y);</div>
<div class="line"><a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a> transformedPoint = matrix * <a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(x, y);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X coordinate of the point to transform </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the point to transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transformed point </dd></dl>

</div>
</div>
<a id="a3824a20505d81a94bc22be1ffee57d3d" name="a3824a20505d81a94bc22be1ffee57d3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3824a20505d81a94bc22be1ffee57d3d">&#9670;&#160;</a></span>transformRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Rect.html">FloatRect</a> sf::Transform::transformRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Rect.html">FloatRect</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classsf_1_1Transform.html" title="Define a 3x3 transform matrix.">Transform</a> a rectangle. </p>
<p>Since SFML doesn't provide support for oriented rectangles, the result of this function is always an axis-aligned rectangle. Which means that if the transform contains a rotation, the bounding rectangle of the transformed rectangle is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangle</td><td>Rectangle to transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transformed rectangle </dd></dl>

</div>
</div>
<a id="a2426209f1fd3cc02129dec373a3c6f69" name="a2426209f1fd3cc02129dec373a3c6f69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2426209f1fd3cc02129dec373a3c6f69">&#9670;&#160;</a></span>translate() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::translate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a translation. </p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(<a class="code hl_class" href="classsf_1_1Vector2.html">sf::Vector2f</a>(100, 200)).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>Translation offset to apply</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a>, <a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554" title="Combine the current transform with a scaling.">scale</a> </dd></dl>

</div>
</div>
<a id="a053cd024e320ae719837386d126d0f51" name="a053cd024e320ae719837386d126d0f51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a053cd024e320ae719837386d126d0f51">&#9670;&#160;</a></span>translate() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; sf::Transform::translate </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Combine the current transform with a translation. </p>
<p>This function returns a reference to *this, so that calls can be chained. </p><div class="fragment"><div class="line"><a class="code hl_class" href="classsf_1_1Transform.html">sf::Transform</a> transform;</div>
<div class="line">transform.<a class="code hl_function" href="classsf_1_1Transform.html#a053cd024e320ae719837386d126d0f51">translate</a>(100, 200).<a class="code hl_function" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b">rotate</a>(45);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>Offset to apply on X axis </td></tr>
    <tr><td class="paramname">y</td><td>Offset to apply on Y axis</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to *this</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classsf_1_1Transform.html#ad09ce22a1fb08709f66f30befc7b2e7b" title="Combine the current transform with a rotation.">rotate</a>, <a class="el" href="classsf_1_1Transform.html#a846e9ff8567f50adea9b3ce4c70c1554" title="Combine the current transform with a scaling.">scale</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="a5eee840ff0b2db9e5f57a87281cc2b01" name="a5eee840ff0b2db9e5f57a87281cc2b01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eee840ff0b2db9e5f57a87281cc2b01">&#9670;&#160;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overload of binary operator != to compare two transforms. </p>
<p>This call is equivalent to !(left == right).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>Left operand (the first transform) </td></tr>
    <tr><td class="paramname">right</td><td>Right operand (the second transform)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the transforms are not equal, false otherwise </dd></dl>

</div>
</div>
<a id="a85ea4e5539795f9b2ceb7d4b06736c8f" name="a85ea4e5539795f9b2ceb7d4b06736c8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85ea4e5539795f9b2ceb7d4b06736c8f">&#9670;&#160;</a></span>operator*() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overload of binary operator * to combine two transforms. </p>
<p>This call is equivalent to calling Transform(left).combine(right).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>Left operand (the first transform) </td></tr>
    <tr><td class="paramname">right</td><td>Right operand (the second transform)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>New combined transform </dd></dl>

</div>
</div>
<a id="a4eeee49125c3c72c250062eef35ceb75" name="a4eeee49125c3c72c250062eef35ceb75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4eeee49125c3c72c250062eef35ceb75">&#9670;&#160;</a></span>operator*() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Vector2.html">Vector2f</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.html">Vector2f</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overload of binary operator * to transform a point. </p>
<p>This call is equivalent to calling left.transformPoint(right).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>Left operand (the transform) </td></tr>
    <tr><td class="paramname">right</td><td>Right operand (the point to transform)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>New transformed point </dd></dl>

</div>
</div>
<a id="a189899674616490f6250953ac581ac30" name="a189899674616490f6250953ac581ac30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a189899674616490f6250953ac581ac30">&#9670;&#160;</a></span>operator*=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp; operator*= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overload of binary operator *= to combine two transforms. </p>
<p>This call is equivalent to calling left.combine(right).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>Left operand (the first transform) </td></tr>
    <tr><td class="paramname">right</td><td>Right operand (the second transform)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The combined transform </dd></dl>

</div>
</div>
<a id="aa2de0a3ee2f8af05dbc94bf3b4633b4a" name="aa2de0a3ee2f8af05dbc94bf3b4633b4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2de0a3ee2f8af05dbc94bf3b4633b4a">&#9670;&#160;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Transform.html">Transform</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overload of binary operator == to compare two transforms. </p>
<p>Performs an element-wise comparison of the elements of the left transform with the elements of the right transform.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>Left operand (the first transform) </td></tr>
    <tr><td class="paramname">right</td><td>Right operand (the second transform)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the transforms are equal, false otherwise </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa4eb1eecbcb9979d76e2543b337fdb13" name="aa4eb1eecbcb9979d76e2543b337fdb13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4eb1eecbcb9979d76e2543b337fdb13">&#9670;&#160;</a></span>Identity</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Transform.html">Transform</a> sf::Transform::Identity</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The identity transform (does nothing) </p>

<p class="definition">Definition at line <a class="el" href="Transform_8hpp_source.html#l00372">372</a> of file <a class="el" href="Transform_8hpp_source.html">Transform.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Transform_8hpp_source.html">Transform.hpp</a></li>
</ul>
</div><!-- contents -->
        </div>
        <div id="footer-container">
            <div id="footer">
                SFML is licensed under the terms and conditions of the <a href="https://www.sfml-dev.org/license.php">zlib/png license</a>.<br>
                Copyright &copy; Laurent Gomila &nbsp;::&nbsp;
                Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> &nbsp;::&nbsp;
            </div>
        </div>
    </body>
</html>
